package design.mode.model.adapter.classadapter;

import design.mode.model.adapter.SdCard;
import design.mode.model.adapter.TfCardImpl;

/**
 * @description 适配器类
 * @since jdk11
 */
public class SdToTfAdapter extends TfCardImpl implements SdCard {
    @Override
    public String read() {
        System.out.println("SdToTfAdapter read TF card");
        return super.readTf();
    }

    @Override
    public void write(String message) {
        System.out.println("SdToTfAdapter write TF card");
        super.writeTf(message);
    }
}
